package main

import (
	"mock/rpc_v4/handler"
	"mock/rpc_v4/server_proxy"
	"net"
	"net/rpc"
)

func main() {
	listen, _ := net.Listen("tcp", ":1234")

	err := server_proxy.RegisterHelloService(&handler.HelloService{})
	if err != nil {
		return
	}
	for  {
		conn, _ := listen.Accept()
		rpc.ServeConn(conn)
	}
}


